package com.example.bigwork.mapper;

import com.example.bigwork.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface OrderItemMapper {
    int insertOrderItem(OrderItem orderItem);
    int insertOrderItems(@Param("items") List<OrderItem> items); // Batch insert
    List<OrderItem> findByOrderId(@Param("orderId") Long orderId);
}